﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using schedulelist.ORM.domain;
namespace schedulelist.ORM.dao.interfaces
{
    public interface IUserDAO : IGenericDAO<User>
    {
        User getUserByName(
        string name);
        User getUserByLogin(
        string log);
        User getUserById(
        int id);
        IList<User> getUsersByRole(
        Role role);
        IList<User> getUsersByDep(
        Departament d);
        int GetTicsCountOfUser(User u);
        int GetCompletedTicsCountOfUser(User u);
        int GetTicsOfownByDate(User u, string datas);
        int GetTicsOfExByDate(User u, string datas);

    }
}
